import { Bk_Course_Category } from 'src/course_category/bk_course_category.entity';
import { Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne } from 'typeorm';

@Entity()
export class Bk_Curriculum_Structure {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    order_number: number;

    @Column({ unique: true })
    course_name: string;

    @Column({ type: "decimal" })
    course_price: number

    @Column({ type: "text" })
    course_description: string;

    @ManyToOne(() => Bk_Course_Category, category => category.course)
    category: Bk_Course_Category;

}